<template>
  <div class="header">
    <div class="header-title">
      <span class="title">{{ title }}</span>
      <span class="min-title" v-if="showMinTitle">
        <slot name="minTitle"></slot>
      </span>
    </div>
    <div>面包屑\面包</div>
  </div>
</template>

<script setup>
import { computed, getCurrentInstance, mergeProps, onMounted, useSlots } from "vue";
import { moveFun } from "@utils/moveManager";

const props = defineProps({
  title: {
    type: String,
    default: "Burger Header",
  },
});
onMounted(() => {
  //   moveFun.outMoveing = getMove;
});

const showMinTitle = computed(() => {
  return useSlots().minTitle;
})

</script>


<style lang="postcss" scoped>
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: flex-start;
  right: 10px;
  padding: 10px 0;
  .title {
    display: inline-block;
    font-size: 32px;
  }
  .min-title {
    margin-left: 10px;
    color: var(--font-light-color);
    display: inline-block;
    &::before {
      content: "/";
      display: inline-block;
    }
  }
}
</style>
